<?php
/*
 * description：
 * author：wh
 * email：
 * createTime：{2020/1/14} {16:26} 
 */

namespace libraries\SystemLogs;



use think\Db;

class SystemLog
{

    static function setLog($title, $content){
        Db::table('web_system_log')->insert([
            'title'=>$title,
            'content'=>is_array($content)? json_encode($content, JSON_UNESCAPED_UNICODE):$content,
        ]);
    }
}